//
//  ANBaseViewController.m
//  ShenWeiRent
//
//  Created by 李叶夫 on 2019/2/27.
//  Copyright © 2019年 liyefu. All rights reserved.
//

#import "ANBaseViewController.h"

@interface ANBaseViewController ()

@end

@implementation ANBaseViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = kColorF2F2F2;
    
//    self.navigationController.navigationBar.tintColor = [UIColor whiteColor];
//    self.edgesForExtendedLayout = UIRectEdgeAll;
    self.automaticallyAdjustsScrollViewInsets = NO;
    [self setupSubViews];
    [self setupConstraints];
    
    self.navigationController.interactivePopGestureRecognizer.delegate = (id)self;
}

- (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer *)gestureRecognizer
{
    if (self.navigationController.viewControllers.count == 1) {
        return NO;
    }
    return YES;
}

- (void)setupSubViews
{
    
}

- (void)setupConstraints
{
    
}

- (void)dealloc
{
    NSLog(@"%@ dealloc",NSStringFromClass([self class]));
}

@end
